import config from './config';

export function authenticated(req, res) {
  const user =req.session.loginUser;
  req.session.originalUrl = req.url;
  if (!user) {
    res.redirect(config.domain + config.redirectUrl);
  }
}

export function logOut() {

}